package org.example;

public class Leetcode_9 {
    public boolean isPalindrome(int x) {
        int i = 1;

        int y = x;
        int sample = 0,num;
        while (y > 0){
            num = y % 10;
            y /= 10;
            sample = sample * 10 + num;
        }

        if (sample == x){
            return true;
        }else {
            return false;
        }


    }

    public static void main(String[] args) {
        Leetcode_9 leetcode = new Leetcode_9();
        System.out.println(leetcode.isPalindrome(91233219));
        System.out.println("The leetcode");
        System.out.println("The leetcode 001");
    }
}
